
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-back"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#icon-back</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-home"></use>
                    </svg>
                    <div class="name">主页</div>
                    <div class="fontclass">#icon-home</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chujiejihua"></use>
                    </svg>
                    <div class="name">出借计划</div>
                    <div class="fontclass">#icon-chujiejihua</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chongzhi"></use>
                    </svg>
                    <div class="name">充值</div>
                    <div class="fontclass">#icon-chongzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dingdan"></use>
                    </svg>
                    <div class="name">订单</div>
                    <div class="fontclass">#icon-dingdan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-anquanbaozhang"></use>
                    </svg>
                    <div class="name">安全保障</div>
                    <div class="fontclass">#icon-anquanbaozhang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-feiyongwenti"></use>
                    </svg>
                    <div class="name">费用问题</div>
                    <div class="fontclass">#icon-feiyongwenti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-daoqi"></use>
                    </svg>
                    <div class="name">到期</div>
                    <div class="fontclass">#icon-daoqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyuanjulebu"></use>
                    </svg>
                    <div class="name">会员俱乐部</div>
                    <div class="fontclass">#icon-huiyuanjulebu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huankuanwenti"></use>
                    </svg>
                    <div class="name">还款问题</div>
                    <div class="fontclass">#icon-huankuanwenti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-password-lock"></use>
                    </svg>
                    <div class="name">密码服务</div>
                    <div class="fontclass">#icon-password-lock</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jingxuanbiao"></use>
                    </svg>
                    <div class="name">精选标</div>
                    <div class="fontclass">#icon-jingxuanbiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiekuanwenti"></use>
                    </svg>
                    <div class="name">借款问题</div>
                    <div class="fontclass">#icon-jiekuanwenti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mingcijieshi"></use>
                    </svg>
                    <div class="name">名词解释</div>
                    <div class="fontclass">#icon-mingcijieshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-quan"></use>
                    </svg>
                    <div class="name">券</div>
                    <div class="fontclass">#icon-quan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shimingrenzheng"></use>
                    </svg>
                    <div class="name">实名认证</div>
                    <div class="fontclass">#icon-shimingrenzheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shoufeibiaozhun"></use>
                    </svg>
                    <div class="name">收费标准</div>
                    <div class="fontclass">#icon-shoufeibiaozhun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tixian"></use>
                    </svg>
                    <div class="name">提现</div>
                    <div class="fontclass">#icon-tixian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tegong"></use>
                    </svg>
                    <div class="name">特供</div>
                    <div class="fontclass">#icon-tegong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhanghuwenti"></use>
                    </svg>
                    <div class="name">账户问题</div>
                    <div class="fontclass">#icon-zhanghuwenti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhaiquanzhuanrang"></use>
                    </svg>
                    <div class="name">债权转让</div>
                    <div class="fontclass">#icon-zhaiquanzhuanrang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouyi"></use>
                    </svg>
                    <div class="name">收益</div>
                    <div class="fontclass">#icon-shouyi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-user-add"></use>
                    </svg>
                    <div class="name">注册登录</div>
                    <div class="fontclass">#icon-user-add</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhifu"></use>
                    </svg>
                    <div class="name">支付</div>
                    <div class="fontclass">#icon-zhifu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-safe"></use>
                    </svg>
                    <div class="name">安全保障</div>
                    <div class="fontclass">#icon-safe</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-"></use>
                    </svg>
                    <div class="name">金融类icon 图标-02</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-1"></use>
                    </svg>
                    <div class="name">金融类icon 图标-05</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-2"></use>
                    </svg>
                    <div class="name">金融类icon 图标-35</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-3"></use>
                    </svg>
                    <div class="name">金融类icon 图标-03</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-4"></use>
                    </svg>
                    <div class="name">金融类icon 图标-04</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-5"></use>
                    </svg>
                    <div class="name">金融类icon 图标-06</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-5</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-6"></use>
                    </svg>
                    <div class="name">金融类icon 图标-11</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-6</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-7"></use>
                    </svg>
                    <div class="name">金融类icon 图标-07</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-7</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-8"></use>
                    </svg>
                    <div class="name">金融类icon 图标-10</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-8</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-9"></use>
                    </svg>
                    <div class="name">金融类icon 图标-08</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-9</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-10"></use>
                    </svg>
                    <div class="name">金融类icon 图标-12</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-10</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-11"></use>
                    </svg>
                    <div class="name">金融类icon 图标-14</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-11</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-12"></use>
                    </svg>
                    <div class="name">金融类icon 图标-09</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-12</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-13"></use>
                    </svg>
                    <div class="name">金融类icon 图标-16</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-13</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-14"></use>
                    </svg>
                    <div class="name">金融类icon 图标-13</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-14</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-15"></use>
                    </svg>
                    <div class="name">金融类icon 图标-15</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-15</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-16"></use>
                    </svg>
                    <div class="name">金融类icon 图标-17</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-16</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-17"></use>
                    </svg>
                    <div class="name">金融类icon 图标-19</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-17</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-18"></use>
                    </svg>
                    <div class="name">金融类icon 图标-21</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-18</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-19"></use>
                    </svg>
                    <div class="name">金融类icon 图标-20</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-19</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-20"></use>
                    </svg>
                    <div class="name">金融类icon 图标-18</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-20</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-21"></use>
                    </svg>
                    <div class="name">金融类icon 图标-22</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-21</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-22"></use>
                    </svg>
                    <div class="name">金融类icon 图标-24</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-22</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-23"></use>
                    </svg>
                    <div class="name">金融类icon 图标-26</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-23</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-24"></use>
                    </svg>
                    <div class="name">金融类icon 图标-23</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-24</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-25"></use>
                    </svg>
                    <div class="name">金融类icon 图标-25</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-25</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-26"></use>
                    </svg>
                    <div class="name">金融类icon 图标-28</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-26</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-27"></use>
                    </svg>
                    <div class="name">金融类icon 图标-30</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-27</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-28"></use>
                    </svg>
                    <div class="name">金融类icon 图标-27</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-28</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-29"></use>
                    </svg>
                    <div class="name">金融类icon 图标-29</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-29</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-30"></use>
                    </svg>
                    <div class="name">金融类icon 图标-32</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-30</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-31"></use>
                    </svg>
                    <div class="name">金融类icon 图标-31</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-31</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-32"></use>
                    </svg>
                    <div class="name">金融类icon 图标-33</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-32</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinrongleiicontubiao-33"></use>
                    </svg>
                    <div class="name">金融类icon 图标-34</div>
                    <div class="fontclass">#icon-jinrongleiicontubiao-33</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
